package virtualinit;

public class SqlHolder {
    public int initLen;
    public int count;
    public Ds ds;

    StringBuilder sql = new StringBuilder(100000);
    public String table;

    public void addValue(Object... args) {
        sql.append(AbstractInit.values(count > 0, args));
        count++;
    }

    public void reset() {
        sql.setLength(initLen);
        count = 0;
    }

    public boolean hasSql() {
        return sql.length() > initLen;
    }

    public String getSql() {
        return sql.toString();
    }

}
